home *** CD-ROM | disk | FTP | other *** search
-
- // remove blanks and count lines with "test"
-
- input "data.in"
-
- set count equal to 0
- do while (someLeft input)
- read
- if (line<>"")
- write
- if (line contains "test")
- set count equal to (count+1)
- endif
- endif
-
- // comment out the next line to make the program run faster
- refresh
-
- loop
-
- write ""
- write ("Count is " count)
-